package ee.helmesWorkTest.backend.model.dao.factory;

import java.sql.Connection;

import ee.helmesWorkTest.backend.model.dao.PersonDAO;
import ee.helmesWorkTest.backend.model.dao.PersonSectorInvolvementDAO;
import ee.helmesWorkTest.backend.model.dao.SectorDAO;
import ee.helmesWorkTest.backend.model.dao.postgresqlimplementations.PersonDAOPostgresqlImpl;
import ee.helmesWorkTest.backend.model.dao.postgresqlimplementations.PersonSectorInvolvementDAOPostgresqlImpl;
import ee.helmesWorkTest.backend.model.dao.postgresqlimplementations.SectorDAOPostgresqlImpl;


public class PostgreSQLDAOFactory extends DAOFactory
{
	@Override
	public PersonDAO getPersonDAOImpl(Connection dbConnection) 
	{
		return new PersonDAOPostgresqlImpl(dbConnection);
	}

	@Override
	public PersonSectorInvolvementDAO getPersonSectorInvolvementDAOImpl(
			Connection dbConnection) 
	{
		return new PersonSectorInvolvementDAOPostgresqlImpl(dbConnection);
	}

	@Override
	public SectorDAO getSectorDAOImpl(Connection dbConnection) 
	{
		return new SectorDAOPostgresqlImpl(dbConnection);
	}
}
